package icu.lookyousmileface.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author starrysky
 * @title: User
 * @projectName spring5
 * @description: TODO
 * @date 2021/2/221:04
 */
//@Component 组件
//等价于<bean id="user" classs"icu.lookyousmileface"/>

@Component
@Data
@Scope("singleton")
public class User {
    @Value("满天星")
    private String string;
}
